package com.study.ming.websocket;

import com.study.ming.entity.WeatherPojo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yh
 * @date 2022/10/15 23:33
 **/
@RestController
public class BookController {
    @GetMapping("/getByCity")
    public WeatherPojo getWeatherByCity(@RequestParam(name="id", value = "id", required = false, defaultValue = "1") Integer id){
//        return weatherFeign.getWeatherByCity(id);
        return null;
    }
}
